﻿<html>
<!DOCTYPE html>
<html lang="en" class="no-js">

    <head>

        <meta charset="utf-8">
        <title>福建青年墙体资源管理系统</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <!-- CSS -->
        <link rel="stylesheet" href="assets/css/reset.css">
        <link rel="stylesheet" href="assets/css/supersized.css">
        <link rel="stylesheet" href="assets/css/style.css">

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
            <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
	<script type="text/javascript">
        var href = location.href;
        var parentHref = parent.location.href;
        if(parentHref != href && href.indexOf("login.do") != -1) parent.location.href = "login.do";
	
		$(document).ready(function () {
			$.ajaxSetup ({ cache:false, async:false});
			
		 	$("#vericode-btn").click(function(){
		 		$('#vericode-img').attr('src', 'vericode.do?' + Math.random());
		 	});

            var options = {dataType: 'json', success : process};
		 	$("#loginForm").submit(function(){
                $(this).ajaxSubmit(options);
                return false;
		 	});

		 	$('#vericode-img').attr('src', 'vericode.do?' + Math.random());
		 	$("#p_error").hide();
		 	$("#username").focus();
		 	
		 	$("#visitor").click(function(){
		 		location.href = "index.do";
		 	});
		 });

		 function process(responseJson) {
            if(responseJson.code == 0) {
                $('#error_label').text("提示：" + responseJson.message);
                $("#p_error").show();
                $("#username").focus();
                $("#vericode-btn").click(); 
                return;
            }
            location.href = "index.do";
		 }
	</script>
    </head>

    <body>

        <div class="page-container">
            <h1>福建青年墙体资源管理系统</h1>
            <form action="login.do" method="post" id ="loginForm">
                <input type="text" name="username" id="username" class="username" placeholder="请输入您的用户名！">
                <input type="password" name="password" id="password" class="password" placeholder="请输入您的用户密码！">
                <input type="Captcha" class="Captcha" name="Captcha" class="Captcha" placeholder="请输入验证码！">
                <button type="submit" class="submit_button">登录</button>
                <div class="error"><span>+</span></div>
            </form>
<!--             <div class="connect"> -->
<!--                 <p>快捷</p> -->
<!--                 <p> -->
<!--                     <a class="facebook" href=""></a> -->
<!--                     <a class="twitter" href=""></a> -->
<!--                 </p> -->
<!--             </div> -->
        </div>
		
        <!-- Javascript -->
        <script src="assets/js/jquery-1.8.2.min.js" ></script>
        <script src="assets/js/supersized.3.2.7.min.js" ></script>
        <script src="assets/js/supersized-init.js" ></script>
        <script src="assets/js/scripts.js" ></script>

    </body>

</html>

